package com.asset.dispoal.dic.service.converter;

import com.asset.dispoal.dic.domain.db.entity.GbDictDo;
import com.asset.dispoal.dic.dto.GbDicRequest;
import com.asset.dispoal.dic.dto.GbDicResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/2/24$
 */
@Mapper
public interface GbDicConverter {

    GbDicConverter INSTANCE = Mappers.getMapper(GbDicConverter.class);

    GbDictDo reqToDo(GbDicRequest request);

    GbDicResponse doToRes(GbDictDo gbDictDo);

    List<GbDicResponse> dosToRes(List<GbDictDo> dictDos);
}
